/**
 * 连接mongodb
 * return conneted mongoose
 */

'use strict';
var mongoose = require('mongoose');
var config = require('../config/index.js');

mongoose.connect(config.mongo.uri, config.mongo.options);

module.exports = exports = mongoose;